package com.graduate.service.serviceImpl;

import com.graduate.dao.UserMapper;
import com.graduate.model.User;
import com.graduate.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/10/23.
 */
@Service
public class LoginServiceImpl implements LoginService {
   @Resource
   private UserMapper userMapper;
    public Boolean LoginMathod(String username,String password){
        System.out.print("***************"+username+password+"-*************");
        User user=userMapper.SelectByName(username);
        if (password.equals(user.getPassword())){
            return true;
        }else{
            return false;
        }
    }
}
